package edu.fudan.cse.medlab.event.crawler;

public class TestThread extends Thread{
	public void run() {
		try{
		sleep(30000);
		System.out.println("child");
	}
		catch(Exception e)
		{ 
			e.printStackTrace();
	}
	}

	public static void main(String[] args){
		try{
		TestThread[] t = new TestThread[5];
		for (int i = 0; i < t.length; i++) {
			t[i] = new TestThread();
			t[i].start();
		}
		for (int i = 0; i < t.length; i++) {
			t[i].join();
		}
		System.out.println("father");
		}
	catch(Exception e)
	{ 
		e.printStackTrace();
}
}
}
